package com.koo.modules.product.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.BaseEntity;
import com.koo.modules.product.entity.vo.ImageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 产品品牌
 * @author charlin
 * @email 136137465@qq.com
 * @date 2022-12-27 11:43:32
 */
@Data
@ApiModel("产品品牌")
@TableName("product_brand")
public class ProductBrandEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long brandId;

    @ColumnWidth(11)
    @ExcelProperty("品牌名称")
    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ColumnWidth(11)
    @ExcelProperty("品牌logo地址")
    @ApiModelProperty(value = "品牌logo地址")
    private String logo;

    @ColumnWidth(11)
    @ExcelProperty("检索首字母")
    @ApiModelProperty(value = "检索首字母")
    private String firstLetter;

    @ColumnWidth(11)
    @ExcelProperty("排序")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ColumnWidth(11)
    @ExcelProperty("介绍")
    @ApiModelProperty(value = "介绍")
    private String descript;

    @TableField(exist = false)
    private List<ImageVo> pics;
}
